ISlave.EoeSetSlaveEoeIp 方法
配置一个 EtherCAT 从站的 EoE (Ethernet over EtherCAT) 网路设定。欲获得更多有关 EoE 的资讯,请见 EtherCAT 乙太网路。
命名空间:IntervalZero.KINGSTAR.Base.Class组合: IntervalZero.KINGSTAR.Base.Class (于 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0
语法
IKsCommand EoeSetSlaveEoeIp(
byte[] mac,
byte[] ip,
byte[] subnet,
byte[] gateway,
byte[] dns,
string dnsName
)
Function EoeSetSlaveEoeIp(
mac As Byte(),
ip As Byte(),
subnet As Byte(),
gateway As Byte(),
dns As Byte(),
dnsName As String
) As IKsCommand
参数
mac
型别:byte[]
从站的 MAC 位址。
ip
型别:byte[]
从站的 IP 位址。
subnet
型别:byte[]
从站的子网路。
gateway
型别:byte[]
从站的闸道。
dns
型别:byte[]
从站的 DNS。
dnsName
型别:string
从站的 DNS 名称。
回传值
型别:IKsCommand
回传一个方法的状态。
备注
- 若 EtherCAT 从站支援 EoE,且在 RTX64 控制台中,网路与介面 (Network and interfaces) 底下的 管理介面 (Manage interfaces) 中,装置 (Device) 设定为 RTX64 虚拟网路介面 (Virtual Network Interface),在 Advanced NAL properties > TCP/IP Stack properties,Filter Name 设定为
KSeoe.rtdll
,则从站将在启动时自动取得 IP 位址。 - IP、子网路、闸道及 DNS 通常以 "1.2.3.4" 表示,四个值的设定范围皆介于 0–255 间,且可储存于一个位元组中。
- 欲获得更多有关 KINGSTAR EoE 配置的资讯,请见 EtherCAT 乙太网路。
可用的 EtherCAT 状态
ecatPreOP, ecatSafeOP, ecatOP
参见